cmake_minimum_required(VERSION 2.6 FATAL_ERROR)
project(MY_GRAND_PROJECT)
list(APPEND CMAKE_MODULE_PATH ${CMAKE_CURRENT_SOURCE_DIR})
find_package(PCL 1.0 REQUIRED COMPONENTS io visualization)

if(WXWIDGETS_FOUND)
	include_directories(${PCL_INCLUDE_DIRS})
	link_directories(${PCL_LIBRARY_DIRS})
	add_definitions(${PCL_DEFINITIONS})
	add_executable(reader reader.cpp)
	target_link_libraries(reader ${PCL_LIBRARIES} ${PCL_IO_LIBRARIES} ${PCL_VISUALIZATION_LIBRARIES})
else(WXWIDGETS_FOUND)
	message("WxWidgets is required to build ${PROJECT_NAME}.")
endif(WXWIDGETS_FOUND)
	